// Initialise certain player functions on the server once a player joins
_player = _this select 0;
_uid = getPlayerUID _player;
_client = owner _player;

// Add players to be editable by zeus
if (!(_player call BIS_fnc_isUnitVirtual)) then {
	{    _x addCuratorEditableObjects [[_player],true];
	} forEach allCurators;  
};

// Initialise persistent score storage
_null = ["awgDB", _uid, "name", name _player] call iniDB_write;				// Write current player name to the section
_playerpoints = ["awgDB", _uid, "points", "SCALAR"] call iniDB_read;		// Read their score from the section
pointslogic setVariable [_uid, _playerpoints, true];						// Set a variables on the pointslogic object to track points during the mission.


